package com.sunday.pinxinghui.model.index;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.sunday.common.base.BaseActivity;
import com.sunday.pinxinghui.R;
import com.sunday.pinxinghui.entity.Message;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Author by Damon,  on 2018/4/18.
 */

public class MessageDetailActivity extends BaseActivity {

    @Bind(R.id.left_btn)
    ImageView leftBtn;
    @Bind(R.id.title_view)
    TextView titleView;
    @Bind(R.id.rightTxt)
    TextView rightTxt;
    @Bind(R.id.right_btn)
    ImageView rightBtn;
    @Bind(R.id.common_header)
    RelativeLayout commonHeader;
    @Bind(R.id.message_content)
    TextView messageContent;

    private Message message;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_msg_detail);
        ButterKnife.bind(this);
        message = (Message) getIntent().getSerializableExtra("msg");
        initUi();
    }

    private void initUi() {
        titleView.setText("消息详情");
        messageContent.setText(message.getMessage());
    }


}
